<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<h3>Nuevo Usuario Administrador</h3>
<div id="separadorsugere" class="separadorprimero"></div>
<div id="formadmin" class="formadmin">
	<?php echo $form->create('User',array('action'=>'admin_add')); ?>
	<?php echo $form->hidden('User.admin',array('value'=>'1'));?>
	<div id="nombreadmin" class="nombremodif">
		<?php
			echo $form->input('User.nombre',array('class'=>'entradamodif','value'=>'Nombre','label'=>'','onfocus'=>'clearText(this)','onblur'=>'clearText(this)'));
		?>
	</div>
	<div id="cedulaadmin" class="emailmodif">
		<?php
			echo $form->input('User.username',array('class'=>'entradamodif','value'=>'C�dula','label'=>'','onfocus'=>'clearText(this)','onblur'=>'clearText(this)'));
		?>
	</div>
	<div id="telefonoadmin" class="usernamemodif">
		<?php
			echo $form->input('Cliente.telefono',array('class'=>'entradamodif','value'=>'Tel�fono','label'=>'','onfocus'=>'clearText(this)','onblur'=>'clearText(this)'));
		?>
	</div>
	<div id="celularadmin" class="celularadmin">
		<?php
			echo $form->input('Cliente.celular',array('class'=>'entradamodif','value'=>'Celular','label'=>'','onfocus'=>'clearText(this)','onblur'=>'clearText(this)'));
		?>
	</div>
	<div id="claveadmin" class="claveadmin">
		<?php
			echo "Clave";
			echo $form->input('User.password',array('class'=>'entradamodif','value'=>'','label'=>'','onfocus'=>'clearText(this)','onblur'=>'clearText(this)'));
		?>
	</div>
	<div id="confclaveadmin" class="confclaveadmin">
		<?php
			echo "Confirmar clave";
			echo $form->input('User.password_confirm',array('type'=>'password','label'=>'','class'=>'entradamodif','onfocus'=>'clearText(this)','onblur'=>'clearText(this)'));
		?>
	</div>
	<div id="emailadmin" class="emailadmin">
		<?php
			echo $form->input('Cliente.mail',array('class'=>'entradamodif','value'=>'E-mail','label'=>'','onfocus'=>'clearText(this)','onblur'=>'clearText(this)'));
			echo $form->hidden('Cliente.sexo',array('value'=>'Masculino'));
			echo $form->hidden('Cliente.empresa',array('value'=>'admin'));
			echo $form->hidden('Cliente.piso',array('value'=>0));
			echo $form->hidden('Cliente.oficina',array('value'=>'admin'));
			echo $form->hidden('Cliente.direccione_id',array('value'=>1));
			echo $form->hidden('Cliente.recibirmail',array('value'=>1));
		?>
	</div>
	
</div>
<div id="separadorsugere" class="separadorprimero"></div>
	<div id="actionadmin" class="actionadmin">
		<div id="botonsalvar" class="salvarmodif">
			<?php
				echo $form->button('Guardar', array('type'=>'submit','class'=> 'botonsalvar'));
				echo $form->end();
			?>
		</div>
		<div id="botonvolver" class="volvermodif">
			<?php
				echo $html->link($html->image('botonVolver.jpg'),array('controller'=>'users','action'=>'admin_index'),array('escape'=>false));
			?>
		</div>
	</div>	